import { Component, Prefab, _decorator, director } from "cc"
import PopupHelper from "../helper/PopupHelper"
const {ccclass,property}=_decorator
@ccclass
export default class ResidentNode extends Component{
    @property({type:Component,displayName:'黑色半透明背景'})
    private dialogBG:Component=null
    @property({type:Component,displayName:'UI层'})
    private ui:Component=null
    @property({type:Component,displayName:'弹窗层'})
    private popup:Component=null
    @property({type:Component,displayName:'顶层'})
    private top:Component=null
    protected onLoad(): void {
        director.addPersistRootNode(this.node)
        PopupHelper.getInstance().init(this.top.node,this.dialogBG.node)
        this.node.setSiblingIndex(this.node.parent.children.length-1)
    }
}